<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: include/container/splayTree.hpp 源文件</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="../../dir_e0f5f6345e438c73b9ae78ec2940718c.html">container</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="headertitle"><div class="title">splayTree.hpp</div></div>
</div><!--header-->
<div class="contents">
<a href="../../d7/d42/splay_tree_8hpp.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span> </div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="preprocessor">#include &lt;iterator&gt;</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="preprocessor">#include &lt;type_traits&gt;</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="preprocessor">#include &lt;list&gt;</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="preprocessor">#include &lt;stack&gt;</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="preprocessor">#include &lt;functional&gt;</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span> </div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../df/d8d/namespacewheels.html">wheels</a></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span>{</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span>    template&lt; typename keyType , typename dataType , typename midKeyType = typename std::decay&lt; keyType&gt;::type, <span class="keyword">typename</span> midDataType = <span class="keyword">typename</span> std::decay&lt; dataType &gt;::type &gt;</div>
<div class="foldopen" id="foldopen00019" data-start="{" data-end="};">
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="../../d2/da8/classwheels_1_1splay_tree.html">   19</a></span>    <span class="keyword">class </span><a class="code hl_class" href="../../d2/da8/classwheels_1_1splay_tree.html">splayTree</a></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span>    {</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="../../d2/da8/classwheels_1_1splay_tree.html#a292e0254eb6beb5ee3ef972912511780">   22</a></span>        <span class="keyword">using </span><a class="code hl_typedef" href="../../d2/da8/classwheels_1_1splay_tree.html#a292e0254eb6beb5ee3ef972912511780">key_type</a> = <span class="keyword">typename</span> std::conditional&lt; std::is_pointer&lt; midKeyType &gt; ::value ,</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span>                                <span class="keyword">typename</span> std::remove_pointer&lt; midKeyType &gt;::type ,</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span>                                midKeyType &gt;::type;</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="../../d2/da8/classwheels_1_1splay_tree.html#a25a40fb486bd53b9364a75cd0a987ad0">   25</a></span>        <span class="keyword">using </span><a class="code hl_typedef" href="../../d2/da8/classwheels_1_1splay_tree.html#a25a40fb486bd53b9364a75cd0a987ad0">value_type</a> = <span class="keyword">typename</span> std::conditional&lt; std::is_pointer&lt; midDataType &gt; ::value ,</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span>                                  <span class="keyword">typename</span> std::remove_pointer&lt; midDataType &gt;::type ,</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span>                                  midDataType &gt;::type;</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span>        <span class="keyword">static_assert</span>( std::is_integral&lt; key_type &gt;::value || std::is_enum&lt; key_type &gt;::value || std::is_class&lt; key_type&gt;::value , <span class="stringliteral">&quot;key类型必须是整数类型，枚举类型或者类&quot;</span> );</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span> </div>
<div class="foldopen" id="foldopen00031" data-start="{" data-end="};">
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html">   31</a></span>        <span class="keyword">struct </span><a class="code hl_struct" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html">stNode</a> {</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#adbf02b5f4b726d799e081d3113641e3a">   32</a></span>            keyType        <a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#adbf02b5f4b726d799e081d3113641e3a">m_key</a>;</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a35c97d2883e43b2ab95ce42e76e53874">   33</a></span>            <a class="code hl_typedef" href="../../d2/da8/classwheels_1_1splay_tree.html#a25a40fb486bd53b9364a75cd0a987ad0">value_type</a>     <a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a35c97d2883e43b2ab95ce42e76e53874">m_data</a>;</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a482db6e86c1463e96c823911a9b30290">   34</a></span>            <a class="code hl_struct" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html">stNode</a>       * <a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a482db6e86c1463e96c823911a9b30290">p_left</a>;</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">   35</a></span>            <a class="code hl_struct" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html">stNode</a>       * <a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">p_right</a>;</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a813798913e3f8d0595d955c28222e9b1">   36</a></span>            <a class="code hl_struct" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html">stNode</a>       * <a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a813798913e3f8d0595d955c28222e9b1">p_parent</a>;</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span> </div>
<div class="foldopen" id="foldopen00038" data-start="{" data-end="}">
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#ab5e4b6be05c0f84d28ddf12c80f6874c">   38</a></span>            <a class="code hl_function" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#ab5e4b6be05c0f84d28ddf12c80f6874c">stNode</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../d2/da8/classwheels_1_1splay_tree.html#a292e0254eb6beb5ee3ef972912511780">key_type</a>&amp; k, <span class="keyword">const</span> <a class="code hl_typedef" href="../../d2/da8/classwheels_1_1splay_tree.html#a25a40fb486bd53b9364a75cd0a987ad0">value_type</a>&amp; data , <a class="code hl_struct" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html">stNode</a>* l = <span class="keyword">nullptr</span>, <a class="code hl_struct" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html">stNode</a>* r = <span class="keyword">nullptr</span>, <a class="code hl_struct" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html">stNode</a>* p = <span class="keyword">nullptr</span>) :</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span>                <a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#adbf02b5f4b726d799e081d3113641e3a">m_key</a>(k), <a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a35c97d2883e43b2ab95ce42e76e53874">m_data</a>( data ), <a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a482db6e86c1463e96c823911a9b30290">p_left</a>(l), <a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">p_right</a>(r), <a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a813798913e3f8d0595d955c28222e9b1">p_parent</a>(p) {}</div>
</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span>        };</div>
</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span> </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="../../d2/da8/classwheels_1_1splay_tree.html#ad9e434fce12aaa842b654cce80c09dd6">   42</a></span>        <span class="keyword">using </span><a class="code hl_struct" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html">node_t</a> = <a class="code hl_struct" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html">stNode</a>;</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span> </div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span>        <span class="comment">// 定义迭代器</span></div>
<div class="foldopen" id="foldopen00045" data-start="{" data-end="};">
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html">   45</a></span>        <span class="keyword">class </span><a class="code hl_class" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html">iterator__</a> : <span class="keyword">public</span> std::iterator&lt; std::forward_iterator_tag , node_t &gt;{</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#affe96b87a8ca33cf74e543f5d0cc83f8">   46</a></span>            <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="../../d2/da8/classwheels_1_1splay_tree.html">splayTree</a>;</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span>        <span class="keyword">private</span>:</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span>            <a class="code hl_struct" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html">node_t</a> * p_node__;</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span>            std::list&lt; node_t* &gt; m_stack__;</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span>        <span class="keyword">public</span>:</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#a9e9516b1c5d66accfa9b8d3371e65b64">   51</a></span>            <a class="code hl_function" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#a9e9516b1c5d66accfa9b8d3371e65b64">iterator__</a>():p_node__( nullptr ){}</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"><a class="line" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#af95201207a9bc5c8c9204c99fc8f46b4">   52</a></span>            <a class="code hl_function" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#af95201207a9bc5c8c9204c99fc8f46b4">iterator__</a>( <a class="code hl_struct" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html">node_t</a> * n ): p_node__( n ){}</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#a8bb5437387263c603ba9e820cde9946b">   53</a></span>            <a class="code hl_function" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#a8bb5437387263c603ba9e820cde9946b">iterator__</a>( <span class="keyword">const</span> <a class="code hl_class" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html">iterator__</a>&amp; b ):p_node__( b.p_node__ ){}</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span> </div>
<div class="foldopen" id="foldopen00055" data-start="{" data-end="}">
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#a0f7582807caa69eb5e7d85ce27b3fc3f">   55</a></span>            <a class="code hl_class" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html">iterator__</a>&amp; <a class="code hl_function" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#a0f7582807caa69eb5e7d85ce27b3fc3f">operator=</a>( <span class="keyword">const</span> <a class="code hl_class" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html">iterator__</a>&amp; b ){</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span>                p_node__ = b.p_node__;</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span>                m_stack__ = b.m_stack__;</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span>                <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span>            }</div>
</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span> </div>
<div class="foldopen" id="foldopen00061" data-start="{" data-end="}">
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#abf56ca75721008d538fa8050372cc5cb">   61</a></span>            <a class="code hl_class" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html">iterator__</a>&amp; <a class="code hl_function" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#abf56ca75721008d538fa8050372cc5cb">operator=</a>( <a class="code hl_class" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html">iterator__</a>&amp;&amp; b ){</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span>                p_node__ = b.p_node__;</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span>                m_stack__ = std::move( b.m_stack__ );</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span> </div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span>                <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span>            }</div>
</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span> </div>
<div class="foldopen" id="foldopen00068" data-start="{" data-end="}">
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#a362b3e4fe60a8cd02148b4d1cd23151f">   68</a></span>            <span class="keywordtype">bool</span> <a class="code hl_function" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#a362b3e4fe60a8cd02148b4d1cd23151f">operator ==</a>( <span class="keyword">const</span> <a class="code hl_class" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html">iterator__</a>&amp; b ){</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span>                <span class="keywordflow">return</span> p_node__ == b.p_node__;</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span>            }</div>
</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span> </div>
<div class="foldopen" id="foldopen00072" data-start="{" data-end="}">
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#a873cb159f4bf98a5b2c32729aaa7add4">   72</a></span>            <span class="keywordtype">bool</span> <a class="code hl_function" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#a873cb159f4bf98a5b2c32729aaa7add4">operator != </a>( <span class="keyword">const</span> <a class="code hl_class" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html">iterator__</a>&amp; b ){</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span>                <span class="keywordflow">return</span> p_node__ != b.p_node__;</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span>            }</div>
</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span> </div>
<div class="foldopen" id="foldopen00076" data-start="{" data-end="}">
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"><a class="line" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#ab9f7ab9b0fa46a018e18c4a6384f8cea">   76</a></span>            <a class="code hl_struct" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html">node_t</a> * <a class="code hl_function" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#ab9f7ab9b0fa46a018e18c4a6384f8cea">operator-&gt;</a>(){</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span>                <span class="keywordflow">if</span>( p_node__ == <span class="keyword">nullptr</span> ){</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span>                    <span class="keywordflow">throw</span> std::runtime_error( <span class="stringliteral">&quot;data pointer is null&quot;</span> );</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span>                }</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span>                <span class="keywordflow">return</span> &amp;p_node__-&gt;__m_data;</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span>            }</div>
</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span> </div>
<div class="foldopen" id="foldopen00083" data-start="{" data-end="}">
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#a1b806df9234b2d34ee31f42bf1cb32f9">   83</a></span>            <a class="code hl_typedef" href="../../d2/da8/classwheels_1_1splay_tree.html#a25a40fb486bd53b9364a75cd0a987ad0">value_type</a>&amp; <a class="code hl_function" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#a1b806df9234b2d34ee31f42bf1cb32f9">operator*</a>(){</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span>                <span class="keywordflow">if</span>( p_node__ == <span class="keyword">nullptr</span> ){</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span>                    <span class="keywordflow">throw</span> std::runtime_error( <span class="stringliteral">&quot;data pointer is null&quot;</span> );</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span>                }</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span>                <span class="keywordflow">return</span> p_node__-&gt;__m_data;</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span>            }</div>
</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span> </div>
<div class="foldopen" id="foldopen00090" data-start="{" data-end="}">
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"><a class="line" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#a4a910d6faf7d5e7755c16032b3f0d77d">   90</a></span>            <a class="code hl_class" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html">iterator__</a>&amp; <a class="code hl_function" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#a4a910d6faf7d5e7755c16032b3f0d77d">operator++</a>(){</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span>                <a class="code hl_struct" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html">node_t</a> * top = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno">   92</span>                <span class="keywordflow">if</span>( m_stack__.size() &gt; 0 ){</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span>                    top =m_stack__.back();</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span>                }</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span>                <span class="comment">// 优先访问左子树</span></div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span>                <span class="keywordflow">if</span>( ( top == <span class="keyword">nullptr</span> ) ||                  <span class="comment">// 允许空栈的时候访问第一个节点</span></div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span>                    <span class="comment">// 如果访问左节点的时候如果发现了已经访问了右节点说明左节点已经被访问过</span></div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span>                    <span class="comment">//                   不要访问已经访问过的左节点     不要访问已经访问过右节点的左节点</span></div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span>                    ( top != <span class="keyword">nullptr</span> &amp;&amp;  top-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a482db6e86c1463e96c823911a9b30290">p_left</a> != p_node__ &amp;&amp;  top-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">p_right</a> != p_node__ &amp;&amp;   p_node__-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a482db6e86c1463e96c823911a9b30290">p_left</a> != <span class="keyword">nullptr</span> ) ){</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span>                    m_stack__.push_back( p_node__ );</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno">  101</span>                    p_node__ = p_node__-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a482db6e86c1463e96c823911a9b30290">p_left</a>;</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno">  102</span>                    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span>                }</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span>                <span class="comment">// 访问右子树</span></div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span>                <span class="keywordflow">if</span>( top != <span class="keyword">nullptr</span> &amp;&amp;   top-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">p_right</a> != p_node__ &amp;&amp;  p_node__-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">p_right</a> != <span class="keyword">nullptr</span> ){</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span>                    m_stack__.push_back( p_node__ );</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span>                    p_node__ = p_node__-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">p_right</a>;</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span>                    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span>                }</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span> </div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno">  111</span>                p_node__ = top;</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span>                m_stack__.pop_back();</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span>                <span class="keywordflow">if</span>( m_stack__.size() &gt; 0 ){ <span class="comment">// 递归调用以弹出栈顶</span></div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno">  114</span>                    <span class="keywordflow">return</span> <a class="code hl_function" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#a4a910d6faf7d5e7755c16032b3f0d77d">operator++</a>();</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno">  115</span>                }<span class="keywordflow">else</span>{ <span class="comment">// 满足end()条件</span></div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span>                    p_node__ = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span>                }</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span> </div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span>                <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span>            }</div>
</div>
<div class="foldopen" id="foldopen00121" data-start="{" data-end="}">
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"><a class="line" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#a010757bf4334af4ccacc71cdd9f1486d">  121</a></span>            <span class="keyword">const</span> <a class="code hl_typedef" href="../../d2/da8/classwheels_1_1splay_tree.html#a292e0254eb6beb5ee3ef972912511780">key_type</a>&amp; <a class="code hl_function" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#a010757bf4334af4ccacc71cdd9f1486d">key</a>(){</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span>                <span class="keywordflow">if</span>( p_node__ == <span class="keyword">nullptr</span> ){</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span>                    <span class="keywordflow">throw</span> std::runtime_error( <span class="stringliteral">&quot;data pointer is null&quot;</span> );</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span>                }</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno">  125</span> </div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno">  126</span>                <span class="keywordflow">return</span> p_node__-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#adbf02b5f4b726d799e081d3113641e3a">m_key</a>;</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno">  127</span>            }</div>
</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span>        };</div>
</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span> </div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span> </div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"><a class="line" href="../../d2/da8/classwheels_1_1splay_tree.html#a429670b334b1d1ae048ec5b4bcd7c909">  131</a></span>        <span class="keyword">using </span><a class="code hl_class" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html">iterator</a> = <a class="code hl_class" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html">iterator__</a>;</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno">  132</span> </div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno">  133</span>    <span class="keyword">private</span>:</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno">  134</span>        <a class="code hl_struct" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html">node_t</a>        * p_root__;</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno">  135</span>        <span class="keywordtype">size_t</span>          m_count__;</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno">  136</span>    <span class="keyword">private</span>:</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno">  140</span>        <span class="keywordtype">void</span> rotate_left__( <a class="code hl_struct" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html">node_t</a> * x) {</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno">  141</span>            <a class="code hl_struct" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html">node_t</a>* y = x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">p_right</a>;</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno">  142</span>            x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">p_right</a> = y-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a482db6e86c1463e96c823911a9b30290">p_left</a>;</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno">  143</span>            <span class="keywordflow">if</span> (y-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a482db6e86c1463e96c823911a9b30290">p_left</a> != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno">  144</span>                y-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a482db6e86c1463e96c823911a9b30290">p_left</a>-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a813798913e3f8d0595d955c28222e9b1">p_parent</a> = x;</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno">  145</span>            }</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno">  146</span> </div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno">  147</span>            y-&gt;parent = x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a813798913e3f8d0595d955c28222e9b1">p_parent</a>;</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno">  148</span> </div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno">  149</span>            <span class="keywordflow">if</span> (x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a813798913e3f8d0595d955c28222e9b1">p_parent</a> == <span class="keyword">nullptr</span>) {</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno">  150</span>                p_root__ = y;</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno">  151</span>            }<span class="keywordflow">else</span> <span class="keywordflow">if</span> (x == x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a813798913e3f8d0595d955c28222e9b1">p_parent</a>-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a482db6e86c1463e96c823911a9b30290">p_left</a>) {</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno">  152</span>                x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a813798913e3f8d0595d955c28222e9b1">p_parent</a>-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a482db6e86c1463e96c823911a9b30290">p_left</a> = y;</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno">  153</span>            }<span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno">  154</span>                x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a813798913e3f8d0595d955c28222e9b1">p_parent</a>-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">p_right</a> = y;</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno">  155</span>            }</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno">  156</span>            y-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a482db6e86c1463e96c823911a9b30290">p_left</a> = x;</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno">  157</span>            x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a813798913e3f8d0595d955c28222e9b1">p_parent</a> = y;</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno">  158</span>        }</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno">  162</span>        <span class="keywordtype">void</span> rotate_right__(<a class="code hl_typedef" href="../../d2/da8/classwheels_1_1splay_tree.html#ad9e434fce12aaa842b654cce80c09dd6">node_t</a>* x) {</div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno">  163</span>            <a class="code hl_typedef" href="../../d2/da8/classwheels_1_1splay_tree.html#ad9e434fce12aaa842b654cce80c09dd6">node_t</a>* y = x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a482db6e86c1463e96c823911a9b30290">p_left</a>;</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno">  164</span>            x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a482db6e86c1463e96c823911a9b30290">p_left</a> = y-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">p_right</a>;</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno">  165</span>            <span class="keywordflow">if</span> (y-&gt;p_right != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno">  166</span>                y-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">p_right</a>-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a813798913e3f8d0595d955c28222e9b1">p_parent</a> = x;</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno">  167</span>            }</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno">  168</span> </div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno">  169</span>            y-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a813798913e3f8d0595d955c28222e9b1">p_parent</a> = x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a813798913e3f8d0595d955c28222e9b1">p_parent</a>;</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno">  170</span> </div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno">  171</span>            <span class="keywordflow">if</span> (x-&gt;p_parent == <span class="keyword">nullptr</span>) {</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno">  172</span>                p_root__ = y;</div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno">  173</span>            }<span class="keywordflow">else</span> <span class="keywordflow">if</span> (x == x-&gt;p_parent-&gt;p_left) {</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno">  174</span>                x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a813798913e3f8d0595d955c28222e9b1">p_parent</a>-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a482db6e86c1463e96c823911a9b30290">p_left</a> = y;</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno">  175</span>            }<span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno">  176</span>                x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a813798913e3f8d0595d955c28222e9b1">p_parent</a>-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">p_right</a> = y;</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno">  177</span>            }</div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno">  178</span>            y-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">p_right</a> = x;</div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno">  179</span>            x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a813798913e3f8d0595d955c28222e9b1">p_parent</a> = y;</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno">  180</span>        }</div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno">  184</span>        <span class="keywordtype">void</span> splay__(<a class="code hl_typedef" href="../../d2/da8/classwheels_1_1splay_tree.html#ad9e434fce12aaa842b654cce80c09dd6">node_t</a>* x) {</div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno">  185</span>            <span class="keywordflow">while</span> (x-&gt;p_parent != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno">  186</span>                <span class="keywordflow">if</span> (x-&gt;p_parent-&gt;p_parent == <span class="keyword">nullptr</span>) {</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno">  187</span>                    <span class="keywordflow">if</span> (x == x-&gt;p_parent-&gt;p_left) {</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno">  188</span>                        rotate_right__(x-&gt;p_parent);</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno">  189</span>                    }<span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno">  190</span>                        rotate_left__(x-&gt;p_parent);</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno">  191</span>                    }</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno">  192</span>                }</div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno">  193</span>                <span class="keywordflow">else</span> <span class="keywordflow">if</span> (x == x-&gt;p_parent-&gt;p_left &amp;&amp; x-&gt;p_parent == x-&gt;p_parent-&gt;p_parent-&gt;p_left) {</div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno">  194</span>                    rotate_right__(x-&gt;p_parent-&gt;p_parent);</div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno">  195</span>                    rotate_right__(x-&gt;p_parent);</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno">  196</span>                }<span class="keywordflow">else</span> <span class="keywordflow">if</span> (x == x-&gt;p_parent-&gt;p_right &amp;&amp; x-&gt;p_parent == x-&gt;p_parent-&gt;p_parent-&gt;p_right) {</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno">  197</span>                    rotate_left__(x-&gt;p_parent-&gt;p_parent);</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno">  198</span>                    rotate_left__(x-&gt;p_parent);</div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno">  199</span>                }<span class="keywordflow">else</span> <span class="keywordflow">if</span> (x == x-&gt;p_parent-&gt;p_right &amp;&amp; x-&gt;p_parent == x-&gt;p_parent-&gt;p_parent-&gt;p_left) {</div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno">  200</span>                    rotate_left__(x-&gt;p_parent);</div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno">  201</span>                    rotate_right__(x-&gt;p_parent);</div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno">  202</span>                }<span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno">  203</span>                    rotate_right__(x-&gt;p_parent);</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno">  204</span>                    rotate_left__(x-&gt;p_parent);</div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno">  205</span>                }</div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno">  206</span>            }</div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno">  207</span>        }</div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno">  213</span>        <a class="code hl_typedef" href="../../d2/da8/classwheels_1_1splay_tree.html#ad9e434fce12aaa842b654cce80c09dd6">node_t</a>* find_node__( <span class="keyword">const</span> <a class="code hl_typedef" href="../../d2/da8/classwheels_1_1splay_tree.html#a292e0254eb6beb5ee3ef972912511780">key_type</a>&amp; <a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#af42ed29217a57fdd3c3e3da935f8c3a8">key</a>) {</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno">  214</span>            <a class="code hl_typedef" href="../../d2/da8/classwheels_1_1splay_tree.html#ad9e434fce12aaa842b654cce80c09dd6">node_t</a>* x = p_root__;</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno">  215</span>            <span class="keywordflow">while</span> (x != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno">  216</span>                <span class="keywordflow">if</span> (<a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#af42ed29217a57fdd3c3e3da935f8c3a8">key &lt; x-&gt;</a><a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#af42ed29217a57fdd3c3e3da935f8c3a8">key</a>) {</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno">  217</span>                    x = x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a482db6e86c1463e96c823911a9b30290">p_left</a>;</div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno">  218</span>                }<span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#af42ed29217a57fdd3c3e3da935f8c3a8">key</a> &gt; x-&gt;key) {</div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno">  219</span>                    x = x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">p_right</a>;</div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno">  220</span>                }<span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno">  221</span>                    <span class="keywordflow">return</span> x;</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno">  222</span>                }</div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno">  223</span>            }</div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno">  224</span>            <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno">  225</span>        }</div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno">  226</span> </div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno">  227</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"><a class="line" href="../../d2/da8/classwheels_1_1splay_tree.html#a755b81722ee601f365109495d01e50ab">  228</a></span>        <a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#a755b81722ee601f365109495d01e50ab">splayTree</a>() : p_root__(nullptr) , m_count__(0){}</div>
<div class="foldopen" id="foldopen00229" data-start="{" data-end="}">
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"><a class="line" href="../../d2/da8/classwheels_1_1splay_tree.html#a995d5528b8e71646c9e0dc1ddf1131f0">  229</a></span>        <span class="keyword">virtual</span> <a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#a995d5528b8e71646c9e0dc1ddf1131f0">~splayTree</a>(){</div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno">  230</span>            <a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#a0828051f4c05b96e06a65ec39dd85102">clear</a>();</div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno">  231</span>        }</div>
</div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno">  232</span> </div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"><a class="line" href="../../d2/da8/classwheels_1_1splay_tree.html#ad6e1b5c920cb05de2201b0b7bbbfa6bc">  233</a></span>        <a class="code hl_class" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html">iterator</a> <a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#ad6e1b5c920cb05de2201b0b7bbbfa6bc">begin</a>(){ <span class="keywordflow">return</span> <a class="code hl_typedef" href="../../d2/da8/classwheels_1_1splay_tree.html#a429670b334b1d1ae048ec5b4bcd7c909">iterator</a>(p_root__); }</div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"><a class="line" href="../../d2/da8/classwheels_1_1splay_tree.html#a6b871f2c3275b0bbb19c0af38c2e6f3b">  234</a></span>        <a class="code hl_class" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html">iterator</a> <a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#a6b871f2c3275b0bbb19c0af38c2e6f3b">end</a>(){ <span class="keywordflow">return</span> <a class="code hl_typedef" href="../../d2/da8/classwheels_1_1splay_tree.html#a429670b334b1d1ae048ec5b4bcd7c909">iterator</a>( <span class="keyword">nullptr</span> ); }</div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"><a class="line" href="../../d2/da8/classwheels_1_1splay_tree.html#af42ed29217a57fdd3c3e3da935f8c3a8">  238</a></span>        <span class="keyword">const</span> <a class="code hl_typedef" href="../../d2/da8/classwheels_1_1splay_tree.html#a292e0254eb6beb5ee3ef972912511780">key_type</a>&amp; <a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#af42ed29217a57fdd3c3e3da935f8c3a8">key</a>( <a class="code hl_class" href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html">iterator</a> it ){}</div>
<div class="foldopen" id="foldopen00241" data-start="{" data-end="}">
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"><a class="line" href="../../d2/da8/classwheels_1_1splay_tree.html#ad288386ad805ee66dd28e99545ba3fb4">  241</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#ad288386ad805ee66dd28e99545ba3fb4">insert</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../d2/da8/classwheels_1_1splay_tree.html#a292e0254eb6beb5ee3ef972912511780">key_type</a>&amp; <a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#af42ed29217a57fdd3c3e3da935f8c3a8">key</a> , <span class="keyword">const</span> <a class="code hl_typedef" href="../../d2/da8/classwheels_1_1splay_tree.html#a25a40fb486bd53b9364a75cd0a987ad0">value_type</a>&amp; data ) {</div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno">  242</span>            <span class="keywordtype">bool</span> ret = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno">  243</span>            <span class="keywordflow">if</span> (p_root__ == <span class="keyword">nullptr</span>) {</div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno">  244</span>                <span class="keywordflow">try</span>{</div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno">  245</span>                    p_root__ = <span class="keyword">new</span> <a class="code hl_typedef" href="../../d2/da8/classwheels_1_1splay_tree.html#ad9e434fce12aaa842b654cce80c09dd6">node_t</a>(<a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#af42ed29217a57fdd3c3e3da935f8c3a8">key</a> , data );</div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno">  246</span>                    m_count__ = 1;</div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno">  247</span>                }<span class="keywordflow">catch</span>( std::bad_alloc&amp; e ){</div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno">  248</span>                    std::cerr &lt;&lt; e.what() &lt;&lt; std::endl;</div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno">  249</span>                    ret = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno">  250</span>                }</div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno">  251</span>                <span class="keywordflow">return</span> ret ;</div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno">  252</span>            }</div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno">  253</span>            <a class="code hl_struct" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html">node_t</a> * x = p_root__;</div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno">  254</span>            <a class="code hl_struct" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html">node_t</a> * y = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno">  255</span>            <span class="keywordflow">while</span> (x != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno">  256</span>                y = x;</div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno">  257</span>                <span class="keywordflow">if</span> (<a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#af42ed29217a57fdd3c3e3da935f8c3a8">key &lt; x-&gt;</a><a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#af42ed29217a57fdd3c3e3da935f8c3a8">key</a>) {</div>
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno">  258</span>                    x = x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a482db6e86c1463e96c823911a9b30290">p_left</a>;</div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno">  259</span>                }<span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#af42ed29217a57fdd3c3e3da935f8c3a8">key</a> &gt; x-&gt;key) {</div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno">  260</span>                    x = x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">p_right</a>;</div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno">  261</span>                }<span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno">  262</span>                    <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno">  263</span>                }</div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno">  264</span>            }</div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno">  265</span>            <span class="keywordflow">try</span>{</div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno">  266</span>                x = <span class="keyword">new</span> <a class="code hl_typedef" href="../../d2/da8/classwheels_1_1splay_tree.html#ad9e434fce12aaa842b654cce80c09dd6">node_t</a>(<a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#af42ed29217a57fdd3c3e3da935f8c3a8">key</a>);</div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno">  267</span>                m_count__ ++;</div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno">  268</span>                x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a813798913e3f8d0595d955c28222e9b1">p_parent</a> = y;</div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno">  269</span>                <span class="keywordflow">if</span> (<a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#af42ed29217a57fdd3c3e3da935f8c3a8">key &lt; y-&gt;</a><a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#af42ed29217a57fdd3c3e3da935f8c3a8">key</a>) {</div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno">  270</span>                    y-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a482db6e86c1463e96c823911a9b30290">p_left</a> = x;</div>
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno">  271</span>                }<span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno">  272</span>                    y-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">p_right</a> = x;</div>
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno">  273</span>                }</div>
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno">  274</span>                splay__(x);</div>
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno">  275</span>            }<span class="keywordflow">catch</span>( std::bad_alloc&amp; e ){</div>
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno">  276</span>                std::cerr &lt;&lt; e.what() &lt;&lt; std::endl;</div>
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno">  277</span>                ret = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno">  278</span>            }</div>
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno">  279</span> </div>
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno">  280</span>            <span class="keywordflow">return</span> ret;</div>
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno">  281</span>        }</div>
</div>
<div class="foldopen" id="foldopen00285" data-start="{" data-end="}">
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"><a class="line" href="../../d2/da8/classwheels_1_1splay_tree.html#a90f6883a406bca4721b580505670be20">  285</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#a90f6883a406bca4721b580505670be20">remove</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../d2/da8/classwheels_1_1splay_tree.html#a292e0254eb6beb5ee3ef972912511780">key_type</a>&amp; <a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#af42ed29217a57fdd3c3e3da935f8c3a8">key</a>) {</div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno">  286</span>            <a class="code hl_struct" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html">node_t</a>* x = find_node__(<a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#af42ed29217a57fdd3c3e3da935f8c3a8">key</a>);</div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno">  287</span>            <span class="keywordflow">if</span> (x == <span class="keyword">nullptr</span>) {</div>
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno">  288</span>                <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno">  289</span>            }</div>
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno">  290</span>            splay__(x);</div>
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno">  291</span>            <span class="keywordflow">if</span> (x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a482db6e86c1463e96c823911a9b30290">p_left</a> == <span class="keyword">nullptr</span>) {</div>
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno">  292</span>                p_root__ = x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">p_right</a>;</div>
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno">  293</span>                <span class="keywordflow">if</span> (x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">p_right</a> != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno">  294</span>                    x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">p_right</a>-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a813798913e3f8d0595d955c28222e9b1">p_parent</a> = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00295" name="l00295"></a><span class="lineno">  295</span>                }</div>
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno">  296</span>            }<span class="keywordflow">else</span> <span class="keywordflow">if</span> (x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">p_right</a> == <span class="keyword">nullptr</span>) {</div>
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno">  297</span>                p_root__ = x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a482db6e86c1463e96c823911a9b30290">p_left</a>;</div>
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno">  298</span>                <span class="keywordflow">if</span> (x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a482db6e86c1463e96c823911a9b30290">p_left</a> != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno">  299</span>                    x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a482db6e86c1463e96c823911a9b30290">p_left</a>-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a813798913e3f8d0595d955c28222e9b1">p_parent</a> = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno">  300</span>                }</div>
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno">  301</span>            }<span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno">  302</span>                <a class="code hl_struct" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html">node_t</a>* y = x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a482db6e86c1463e96c823911a9b30290">p_left</a>;</div>
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno">  303</span>                <span class="keywordflow">while</span> (y-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">p_right</a> != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a id="l00304" name="l00304"></a><span class="lineno">  304</span>                    y = y-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">p_right</a>;</div>
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno">  305</span>                }</div>
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno">  306</span>                splay__(y);</div>
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno">  307</span>                y-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">p_right</a> = x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">p_right</a>;</div>
<div class="line"><a id="l00308" name="l00308"></a><span class="lineno">  308</span>                x-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">p_right</a>-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a813798913e3f8d0595d955c28222e9b1">p_parent</a> = y;</div>
<div class="line"><a id="l00309" name="l00309"></a><span class="lineno">  309</span>                p_root__ = y;</div>
<div class="line"><a id="l00310" name="l00310"></a><span class="lineno">  310</span>                y-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a813798913e3f8d0595d955c28222e9b1">p_parent</a> = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno">  311</span>            }</div>
<div class="line"><a id="l00312" name="l00312"></a><span class="lineno">  312</span>            m_count__ --;</div>
<div class="line"><a id="l00313" name="l00313"></a><span class="lineno">  313</span>            <span class="keyword">delete</span> x;</div>
<div class="line"><a id="l00314" name="l00314"></a><span class="lineno">  314</span>        }</div>
</div>
<div class="foldopen" id="foldopen00320" data-start="{" data-end="}">
<div class="line"><a id="l00320" name="l00320"></a><span class="lineno"><a class="line" href="../../d2/da8/classwheels_1_1splay_tree.html#ab663e01f01a6a4bab6f4348006910526">  320</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#ab663e01f01a6a4bab6f4348006910526">has</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../d2/da8/classwheels_1_1splay_tree.html#a292e0254eb6beb5ee3ef972912511780">key_type</a>&amp; <a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#af42ed29217a57fdd3c3e3da935f8c3a8">key</a>) {</div>
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno">  321</span>            <span class="keywordflow">return</span> find_node__(<a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#af42ed29217a57fdd3c3e3da935f8c3a8">key</a>) != <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno">  322</span>        }</div>
</div>
<div class="line"><a id="l00323" name="l00323"></a><span class="lineno">  323</span> </div>
<div class="foldopen" id="foldopen00324" data-start="{" data-end="}">
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno"><a class="line" href="../../d2/da8/classwheels_1_1splay_tree.html#a0828051f4c05b96e06a65ec39dd85102">  324</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#a0828051f4c05b96e06a65ec39dd85102">clear</a>() {</div>
<div class="line"><a id="l00325" name="l00325"></a><span class="lineno">  325</span>            <span class="keywordflow">while</span> (p_root__ != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a id="l00326" name="l00326"></a><span class="lineno">  326</span>                <a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#a90f6883a406bca4721b580505670be20">remove</a>(p_root__-&gt;key);</div>
<div class="line"><a id="l00327" name="l00327"></a><span class="lineno">  327</span>            }</div>
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno">  328</span>        }</div>
</div>
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno">  329</span> </div>
<div class="foldopen" id="foldopen00330" data-start="{" data-end="}">
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno"><a class="line" href="../../d2/da8/classwheels_1_1splay_tree.html#a45514ed5935042918b28725292d0e572">  330</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/da8/classwheels_1_1splay_tree.html#a45514ed5935042918b28725292d0e572">traverse</a>(std::function&lt;<span class="keywordtype">void</span>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../d2/da8/classwheels_1_1splay_tree.html#a292e0254eb6beb5ee3ef972912511780">key_type</a>&amp;, <span class="keyword">const</span> <a class="code hl_typedef" href="../../d2/da8/classwheels_1_1splay_tree.html#a25a40fb486bd53b9364a75cd0a987ad0">value_type</a>&amp;)&gt; func) {</div>
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno">  331</span>            <span class="keywordflow">if</span> (p_root__ == <span class="keyword">nullptr</span>) {</div>
<div class="line"><a id="l00332" name="l00332"></a><span class="lineno">  332</span>                <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno">  333</span>            }</div>
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno">  334</span>            std::stack&lt;node_t*&gt; stk;</div>
<div class="line"><a id="l00335" name="l00335"></a><span class="lineno">  335</span>            <a class="code hl_struct" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html">node_t</a>* p = p_root__;</div>
<div class="line"><a id="l00336" name="l00336"></a><span class="lineno">  336</span>            <span class="keywordflow">while</span> (p != <span class="keyword">nullptr</span> || !stk.empty()) {</div>
<div class="line"><a id="l00337" name="l00337"></a><span class="lineno">  337</span>                <span class="keywordflow">while</span> (p != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a id="l00338" name="l00338"></a><span class="lineno">  338</span>                    stk.push(p);</div>
<div class="line"><a id="l00339" name="l00339"></a><span class="lineno">  339</span>                    p = p-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a482db6e86c1463e96c823911a9b30290">p_left</a>;</div>
<div class="line"><a id="l00340" name="l00340"></a><span class="lineno">  340</span>                }</div>
<div class="line"><a id="l00341" name="l00341"></a><span class="lineno">  341</span>                <span class="keywordflow">if</span> (!stk.empty()) {</div>
<div class="line"><a id="l00342" name="l00342"></a><span class="lineno">  342</span>                    p = stk.top();</div>
<div class="line"><a id="l00343" name="l00343"></a><span class="lineno">  343</span>                    stk.pop();</div>
<div class="line"><a id="l00344" name="l00344"></a><span class="lineno">  344</span>                    func(p-&gt;key, p-&gt;data);</div>
<div class="line"><a id="l00345" name="l00345"></a><span class="lineno">  345</span>                    p = p-&gt;<a class="code hl_variable" href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">p_right</a>;</div>
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno">  346</span>                }</div>
<div class="line"><a id="l00347" name="l00347"></a><span class="lineno">  347</span>            }</div>
<div class="line"><a id="l00348" name="l00348"></a><span class="lineno">  348</span>        }</div>
</div>
<div class="line"><a id="l00349" name="l00349"></a><span class="lineno">  349</span>    };</div>
</div>
<div class="line"><a id="l00350" name="l00350"></a><span class="lineno">  350</span>}</div>
<div class="ttc" id="aclasswheels_1_1splay_tree_1_1iterator_____html"><div class="ttname"><a href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html">wheels::splayTree::iterator__</a></div><div class="ttdef"><b>定义</b> <a href="#l00045">splayTree.hpp:45</a></div></div>
<div class="ttc" id="aclasswheels_1_1splay_tree_1_1iterator_____html_a010757bf4334af4ccacc71cdd9f1486d"><div class="ttname"><a href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#a010757bf4334af4ccacc71cdd9f1486d">wheels::splayTree::iterator__::key</a></div><div class="ttdeci">const key_type &amp; key()</div><div class="ttdef"><b>定义</b> <a href="#l00121">splayTree.hpp:121</a></div></div>
<div class="ttc" id="aclasswheels_1_1splay_tree_1_1iterator_____html_a0f7582807caa69eb5e7d85ce27b3fc3f"><div class="ttname"><a href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#a0f7582807caa69eb5e7d85ce27b3fc3f">wheels::splayTree::iterator__::operator=</a></div><div class="ttdeci">iterator__ &amp; operator=(const iterator__ &amp;b)</div><div class="ttdef"><b>定义</b> <a href="#l00055">splayTree.hpp:55</a></div></div>
<div class="ttc" id="aclasswheels_1_1splay_tree_1_1iterator_____html_a1b806df9234b2d34ee31f42bf1cb32f9"><div class="ttname"><a href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#a1b806df9234b2d34ee31f42bf1cb32f9">wheels::splayTree::iterator__::operator*</a></div><div class="ttdeci">value_type &amp; operator*()</div><div class="ttdef"><b>定义</b> <a href="#l00083">splayTree.hpp:83</a></div></div>
<div class="ttc" id="aclasswheels_1_1splay_tree_1_1iterator_____html_a362b3e4fe60a8cd02148b4d1cd23151f"><div class="ttname"><a href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#a362b3e4fe60a8cd02148b4d1cd23151f">wheels::splayTree::iterator__::operator==</a></div><div class="ttdeci">bool operator==(const iterator__ &amp;b)</div><div class="ttdef"><b>定义</b> <a href="#l00068">splayTree.hpp:68</a></div></div>
<div class="ttc" id="aclasswheels_1_1splay_tree_1_1iterator_____html_a4a910d6faf7d5e7755c16032b3f0d77d"><div class="ttname"><a href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#a4a910d6faf7d5e7755c16032b3f0d77d">wheels::splayTree::iterator__::operator++</a></div><div class="ttdeci">iterator__ &amp; operator++()</div><div class="ttdef"><b>定义</b> <a href="#l00090">splayTree.hpp:90</a></div></div>
<div class="ttc" id="aclasswheels_1_1splay_tree_1_1iterator_____html_a873cb159f4bf98a5b2c32729aaa7add4"><div class="ttname"><a href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#a873cb159f4bf98a5b2c32729aaa7add4">wheels::splayTree::iterator__::operator!=</a></div><div class="ttdeci">bool operator!=(const iterator__ &amp;b)</div><div class="ttdef"><b>定义</b> <a href="#l00072">splayTree.hpp:72</a></div></div>
<div class="ttc" id="aclasswheels_1_1splay_tree_1_1iterator_____html_a8bb5437387263c603ba9e820cde9946b"><div class="ttname"><a href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#a8bb5437387263c603ba9e820cde9946b">wheels::splayTree::iterator__::iterator__</a></div><div class="ttdeci">iterator__(const iterator__ &amp;b)</div><div class="ttdef"><b>定义</b> <a href="#l00053">splayTree.hpp:53</a></div></div>
<div class="ttc" id="aclasswheels_1_1splay_tree_1_1iterator_____html_a9e9516b1c5d66accfa9b8d3371e65b64"><div class="ttname"><a href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#a9e9516b1c5d66accfa9b8d3371e65b64">wheels::splayTree::iterator__::iterator__</a></div><div class="ttdeci">iterator__()</div><div class="ttdef"><b>定义</b> <a href="#l00051">splayTree.hpp:51</a></div></div>
<div class="ttc" id="aclasswheels_1_1splay_tree_1_1iterator_____html_ab9f7ab9b0fa46a018e18c4a6384f8cea"><div class="ttname"><a href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#ab9f7ab9b0fa46a018e18c4a6384f8cea">wheels::splayTree::iterator__::operator-&gt;</a></div><div class="ttdeci">node_t * operator-&gt;()</div><div class="ttdef"><b>定义</b> <a href="#l00076">splayTree.hpp:76</a></div></div>
<div class="ttc" id="aclasswheels_1_1splay_tree_1_1iterator_____html_abf56ca75721008d538fa8050372cc5cb"><div class="ttname"><a href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#abf56ca75721008d538fa8050372cc5cb">wheels::splayTree::iterator__::operator=</a></div><div class="ttdeci">iterator__ &amp; operator=(iterator__ &amp;&amp;b)</div><div class="ttdef"><b>定义</b> <a href="#l00061">splayTree.hpp:61</a></div></div>
<div class="ttc" id="aclasswheels_1_1splay_tree_1_1iterator_____html_af95201207a9bc5c8c9204c99fc8f46b4"><div class="ttname"><a href="../../de/dec/classwheels_1_1splay_tree_1_1iterator____.html#af95201207a9bc5c8c9204c99fc8f46b4">wheels::splayTree::iterator__::iterator__</a></div><div class="ttdeci">iterator__(node_t *n)</div><div class="ttdef"><b>定义</b> <a href="#l00052">splayTree.hpp:52</a></div></div>
<div class="ttc" id="aclasswheels_1_1splay_tree_html"><div class="ttname"><a href="../../d2/da8/classwheels_1_1splay_tree.html">wheels::splayTree</a></div><div class="ttdef"><b>定义</b> <a href="#l00019">splayTree.hpp:20</a></div></div>
<div class="ttc" id="aclasswheels_1_1splay_tree_html_a0828051f4c05b96e06a65ec39dd85102"><div class="ttname"><a href="../../d2/da8/classwheels_1_1splay_tree.html#a0828051f4c05b96e06a65ec39dd85102">wheels::splayTree::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdef"><b>定义</b> <a href="#l00324">splayTree.hpp:324</a></div></div>
<div class="ttc" id="aclasswheels_1_1splay_tree_html_a25a40fb486bd53b9364a75cd0a987ad0"><div class="ttname"><a href="../../d2/da8/classwheels_1_1splay_tree.html#a25a40fb486bd53b9364a75cd0a987ad0">wheels::splayTree::value_type</a></div><div class="ttdeci">typename std::conditional&lt; std::is_pointer&lt; midDataType &gt; ::value, typename std::remove_pointer&lt; midDataType &gt;::type, midDataType &gt;::type value_type</div><div class="ttdef"><b>定义</b> <a href="#l00025">splayTree.hpp:25</a></div></div>
<div class="ttc" id="aclasswheels_1_1splay_tree_html_a292e0254eb6beb5ee3ef972912511780"><div class="ttname"><a href="../../d2/da8/classwheels_1_1splay_tree.html#a292e0254eb6beb5ee3ef972912511780">wheels::splayTree::key_type</a></div><div class="ttdeci">typename std::conditional&lt; std::is_pointer&lt; midKeyType &gt; ::value, typename std::remove_pointer&lt; midKeyType &gt;::type, midKeyType &gt;::type key_type</div><div class="ttdef"><b>定义</b> <a href="#l00022">splayTree.hpp:22</a></div></div>
<div class="ttc" id="aclasswheels_1_1splay_tree_html_a429670b334b1d1ae048ec5b4bcd7c909"><div class="ttname"><a href="../../d2/da8/classwheels_1_1splay_tree.html#a429670b334b1d1ae048ec5b4bcd7c909">wheels::splayTree::iterator</a></div><div class="ttdeci">iterator__ iterator</div><div class="ttdef"><b>定义</b> <a href="#l00131">splayTree.hpp:131</a></div></div>
<div class="ttc" id="aclasswheels_1_1splay_tree_html_a45514ed5935042918b28725292d0e572"><div class="ttname"><a href="../../d2/da8/classwheels_1_1splay_tree.html#a45514ed5935042918b28725292d0e572">wheels::splayTree::traverse</a></div><div class="ttdeci">void traverse(std::function&lt; void(const key_type &amp;, const value_type &amp;)&gt; func)</div><div class="ttdef"><b>定义</b> <a href="#l00330">splayTree.hpp:330</a></div></div>
<div class="ttc" id="aclasswheels_1_1splay_tree_html_a6b871f2c3275b0bbb19c0af38c2e6f3b"><div class="ttname"><a href="../../d2/da8/classwheels_1_1splay_tree.html#a6b871f2c3275b0bbb19c0af38c2e6f3b">wheels::splayTree::end</a></div><div class="ttdeci">iterator end()</div><div class="ttdef"><b>定义</b> <a href="#l00234">splayTree.hpp:234</a></div></div>
<div class="ttc" id="aclasswheels_1_1splay_tree_html_a755b81722ee601f365109495d01e50ab"><div class="ttname"><a href="../../d2/da8/classwheels_1_1splay_tree.html#a755b81722ee601f365109495d01e50ab">wheels::splayTree::splayTree</a></div><div class="ttdeci">splayTree()</div><div class="ttdef"><b>定义</b> <a href="#l00228">splayTree.hpp:228</a></div></div>
<div class="ttc" id="aclasswheels_1_1splay_tree_html_a90f6883a406bca4721b580505670be20"><div class="ttname"><a href="../../d2/da8/classwheels_1_1splay_tree.html#a90f6883a406bca4721b580505670be20">wheels::splayTree::remove</a></div><div class="ttdeci">void remove(const key_type &amp;key)</div><div class="ttdoc">删除指定件节点</div><div class="ttdef"><b>定义</b> <a href="#l00285">splayTree.hpp:285</a></div></div>
<div class="ttc" id="aclasswheels_1_1splay_tree_html_a995d5528b8e71646c9e0dc1ddf1131f0"><div class="ttname"><a href="../../d2/da8/classwheels_1_1splay_tree.html#a995d5528b8e71646c9e0dc1ddf1131f0">wheels::splayTree::~splayTree</a></div><div class="ttdeci">virtual ~splayTree()</div><div class="ttdef"><b>定义</b> <a href="#l00229">splayTree.hpp:229</a></div></div>
<div class="ttc" id="aclasswheels_1_1splay_tree_html_ab663e01f01a6a4bab6f4348006910526"><div class="ttname"><a href="../../d2/da8/classwheels_1_1splay_tree.html#ab663e01f01a6a4bab6f4348006910526">wheels::splayTree::has</a></div><div class="ttdeci">bool has(const key_type &amp;key)</div><div class="ttdoc">判断是否存在指定key的数据</div><div class="ttdef"><b>定义</b> <a href="#l00320">splayTree.hpp:320</a></div></div>
<div class="ttc" id="aclasswheels_1_1splay_tree_html_ad288386ad805ee66dd28e99545ba3fb4"><div class="ttname"><a href="../../d2/da8/classwheels_1_1splay_tree.html#ad288386ad805ee66dd28e99545ba3fb4">wheels::splayTree::insert</a></div><div class="ttdeci">bool insert(const key_type &amp;key, const value_type &amp;data)</div><div class="ttdef"><b>定义</b> <a href="#l00241">splayTree.hpp:241</a></div></div>
<div class="ttc" id="aclasswheels_1_1splay_tree_html_ad6e1b5c920cb05de2201b0b7bbbfa6bc"><div class="ttname"><a href="../../d2/da8/classwheels_1_1splay_tree.html#ad6e1b5c920cb05de2201b0b7bbbfa6bc">wheels::splayTree::begin</a></div><div class="ttdeci">iterator begin()</div><div class="ttdef"><b>定义</b> <a href="#l00233">splayTree.hpp:233</a></div></div>
<div class="ttc" id="aclasswheels_1_1splay_tree_html_ad9e434fce12aaa842b654cce80c09dd6"><div class="ttname"><a href="../../d2/da8/classwheels_1_1splay_tree.html#ad9e434fce12aaa842b654cce80c09dd6">wheels::splayTree::node_t</a></div><div class="ttdeci">stNode node_t</div><div class="ttdef"><b>定义</b> <a href="#l00042">splayTree.hpp:42</a></div></div>
<div class="ttc" id="aclasswheels_1_1splay_tree_html_af42ed29217a57fdd3c3e3da935f8c3a8"><div class="ttname"><a href="../../d2/da8/classwheels_1_1splay_tree.html#af42ed29217a57fdd3c3e3da935f8c3a8">wheels::splayTree::key</a></div><div class="ttdeci">const key_type &amp; key(iterator it)</div><div class="ttdoc">读取key内容</div><div class="ttdef"><b>定义</b> <a href="#l00238">splayTree.hpp:238</a></div></div>
<div class="ttc" id="anamespacewheels_html"><div class="ttname"><a href="../../df/d8d/namespacewheels.html">wheels</a></div><div class="ttdoc">堆栈信息读取和保存记录</div><div class="ttdef"><b>定义</b> <a href="../../d3/df7/ary__str_8hpp_source.html#l00006">ary_str.hpp:7</a></div></div>
<div class="ttc" id="astructwheels_1_1splay_tree_1_1st_node_html"><div class="ttname"><a href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html">wheels::splayTree::stNode</a></div><div class="ttdef"><b>定义</b> <a href="#l00031">splayTree.hpp:31</a></div></div>
<div class="ttc" id="astructwheels_1_1splay_tree_1_1st_node_html_a35c97d2883e43b2ab95ce42e76e53874"><div class="ttname"><a href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a35c97d2883e43b2ab95ce42e76e53874">wheels::splayTree::stNode::m_data</a></div><div class="ttdeci">value_type m_data</div><div class="ttdef"><b>定义</b> <a href="#l00033">splayTree.hpp:33</a></div></div>
<div class="ttc" id="astructwheels_1_1splay_tree_1_1st_node_html_a3aac959608b20a76ee1e18ecf7770f59"><div class="ttname"><a href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a3aac959608b20a76ee1e18ecf7770f59">wheels::splayTree::stNode::p_right</a></div><div class="ttdeci">stNode * p_right</div><div class="ttdef"><b>定义</b> <a href="#l00035">splayTree.hpp:35</a></div></div>
<div class="ttc" id="astructwheels_1_1splay_tree_1_1st_node_html_a482db6e86c1463e96c823911a9b30290"><div class="ttname"><a href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a482db6e86c1463e96c823911a9b30290">wheels::splayTree::stNode::p_left</a></div><div class="ttdeci">stNode * p_left</div><div class="ttdef"><b>定义</b> <a href="#l00034">splayTree.hpp:34</a></div></div>
<div class="ttc" id="astructwheels_1_1splay_tree_1_1st_node_html_a813798913e3f8d0595d955c28222e9b1"><div class="ttname"><a href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#a813798913e3f8d0595d955c28222e9b1">wheels::splayTree::stNode::p_parent</a></div><div class="ttdeci">stNode * p_parent</div><div class="ttdef"><b>定义</b> <a href="#l00036">splayTree.hpp:36</a></div></div>
<div class="ttc" id="astructwheels_1_1splay_tree_1_1st_node_html_ab5e4b6be05c0f84d28ddf12c80f6874c"><div class="ttname"><a href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#ab5e4b6be05c0f84d28ddf12c80f6874c">wheels::splayTree::stNode::stNode</a></div><div class="ttdeci">stNode(const key_type &amp;k, const value_type &amp;data, stNode *l=nullptr, stNode *r=nullptr, stNode *p=nullptr)</div><div class="ttdef"><b>定义</b> <a href="#l00038">splayTree.hpp:38</a></div></div>
<div class="ttc" id="astructwheels_1_1splay_tree_1_1st_node_html_adbf02b5f4b726d799e081d3113641e3a"><div class="ttname"><a href="../../d3/d1b/structwheels_1_1splay_tree_1_1st_node.html#adbf02b5f4b726d799e081d3113641e3a">wheels::splayTree::stNode::m_key</a></div><div class="ttdeci">keyType m_key</div><div class="ttdef"><b>定义</b> <a href="#l00032">splayTree.hpp:32</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
